﻿using System;
using System.Collections.Generic;
using SensorNetworkUI;
namespace WebAccess
{
    public abstract class StatEngine
    {
        public bool Light;
        public StatEngine()
        {

            
        }
         protected double[] SetToArray(HashSet<SensorStructure> sensors)
         {

             double[] vals = new double[sensors.Count];

             int i = 0;
             foreach (SensorStructure sens in sensors)
             {
                 if (!Light)
                     vals[i] = sens.Latesttemp;
                 else
                     vals[i] = sens.LatestLight;
                 i++;

             }
             return vals;

         }
      
    }
}
